﻿Imports DTO
Imports DAO
Public Class PhongBus
    Public Shared Function Them(ByVal phong As Phong) As Integer
        Return PhongDAO.ThemPhong(phong)
    End Function
    Public Shared Function LayDanhSach() As List(Of Phong)
        Return PhongDAO.LayDanhSach()
    End Function
    Public Shared Function CapNhatTinhTrang(ByVal maphong As Integer, ByVal tinhtrang As String) As Integer
        Return PhongDAO.CapNhatTinhTrang(maphong, tinhtrang)
    End Function
    Public Shared Function TimKiem(ByVal phong As PhongCRT, ByVal loaiphong As LoaiPhongCRT) As List(Of Phong)
        Return PhongDAO.TimKiem(phong, loaiphong)
    End Function
    Public Shared Function TongSoNgayThue(ByVal ngay As Date) As Integer
        Return PhongDAO.TongSoNgayThue(ngay)
    End Function
    Public Shared Function SoNgayThue(ByVal maphong As Integer, ByVal ngay As Date)
        Return PhongDAO.SoNgayThue(maphong, ngay)
    End Function
    Public Shared Function Xoa(ByVal maphong As Integer) As Integer
        Return PhongDAO.Xoa(maphong)
    End Function
    Public Shared Function Sua(ByVal phong As Phong) As Integer
        Return PhongDAO.Sua(phong)
    End Function
End Class
